package luob.study;

public class App {
	public static void main(String[] args) {
		try {
			Movable o = (Movable) MyProxy.newProxyInstance(Movable.class,
					new TimeHandler(new Tank()));
			Movable oo = (Movable) MyProxy.newProxyInstance(Movable.class,
					new LogHandler(o));
			oo.move();
			oo.move(10, 24);
			oo.move(10, 24, "down");
			oo.stop(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
